﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Twitch_Viewer {
    public partial class Ask : Form {
        public Ask() {
            InitializeComponent();
        }

        private void viewButton_Click(object sender, EventArgs e) {
            Twitch_Viewer.Program.channel = streamText.Text;

            if (!this.chatAsk2.Checked) {
                Viewer viewer = new Viewer();
                viewer.Show();
            }

            if (!this.chatAsk1.Checked) {
                Chat chat = new Chat();
                chat.Show();
            }


            this.Close();
        }

        private void cancelButton_Click(object sender, EventArgs e) {
            this.Close();
        }

        private void loginButton_Click(object sender, EventArgs e) {
            Login login = new Login();
            login.ShowDialog();
        }
    }
}
